#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_category_loading() {
        let categories = load_categories();
        assert_eq!(categories.len(), 7);
        assert_eq!(categories[0].name, "图形图像");
    }

    #[test]
    fn test_ui_interaction() {
        // 模拟前端选择操作
        let result = simulate_selection("development");
        assert!(result.contains("编程开发"));
    }
}